﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;
using System.ComponentModel;
using System.ServiceModel.Web;

namespace Chinaer.WCF.Contracts
{
    public partial interface IChinaer
    {
        [OperationContract]
        [Description("获取所有的订单状态信息")]
        [WebInvoke(
             ResponseFormat = WebMessageFormat.Json,
             RequestFormat = WebMessageFormat.Json,
             BodyStyle = WebMessageBodyStyle.Bare,
             UriTemplate = "GetAllDingDanStatus/{apiToken}",
             Method = "GET"
            )]
        List<DTO.DingDanStatusDTO> GetAllDingDanStatus(string apiToken);

        [OperationContract]
        [Description("添加订单状态信息")]
        [WebInvoke(
             ResponseFormat = WebMessageFormat.Json,
             RequestFormat = WebMessageFormat.Json,
             BodyStyle = WebMessageBodyStyle.Bare,
             UriTemplate = "AddDingDanStatus",
             Method = "POST"
            )]
        Chinaer.Model.Common.JsonResult AddDingDanStatus(DTO.DingDanStatusDTO dingDanStatusDTO);

        [OperationContract]
        [Description("更新订单状态信息")]
        [WebInvoke(
             ResponseFormat = WebMessageFormat.Json,
             RequestFormat = WebMessageFormat.Json,
             BodyStyle = WebMessageBodyStyle.Bare,
             UriTemplate = "UpdateDingDanStatus",
             Method = "POST"
            )]
        Chinaer.Model.Common.JsonResult UpdateDingDanStatus(DTO.DingDanStatusDTO dingDanStatusDTO);
        [OperationContract]
        [Description("删除订单状态信息")]
        [WebInvoke(
             ResponseFormat = WebMessageFormat.Json,
             RequestFormat = WebMessageFormat.Json,
             BodyStyle = WebMessageBodyStyle.Bare,
             UriTemplate = "DeleteDingDanStatus",
             Method = "POST"
            )]
        Chinaer.Model.Common.JsonResult DeleteDingDanStatus(DTO.DingDanStatusDTO dingDanStatusDTO);
        [OperationContract]
        [Description("根据订单信息编号删除订单状态信息")]
        [WebInvoke(
             ResponseFormat = WebMessageFormat.Json,
             RequestFormat = WebMessageFormat.Json,
             BodyStyle = WebMessageBodyStyle.Bare,
             UriTemplate = "GetAllDingDanStatus/{dingDanID}/{apiToken}",
             Method = "GET"
            )]
        Chinaer.Model.Common.JsonResult DeleteDingDanStatusByID(string dingDanID, string apiToken);
    }
}
